package com.df.my_net_game.game_rpc.service.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
@Data
@ConfigurationProperties(prefix = "ezgame")
public class LogicServiceProperties {
    private Integer controllerBaseTimes =  10000;
    private ServerCfg rpcServer;
    private ServerCfg clientServer;

    public void setControllerBaseTimes(Integer controllerBaseTimes) {
        if(controllerBaseTimes<0){
            throw new RuntimeException("controllerBaseTimes 不能小于0");
        }
        this.controllerBaseTimes = controllerBaseTimes;
    }
}
